

/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
 <script>
function onUpdata(id){
    function on Updata(id:id){
        $get(url,{id:id},
          function(data){
            var data = eval("("+data+")"); //转换为json格式
            if(data.staus == 1){
                $("#rigth input[name='username']"),val(data.info.username);
                (var i=0;i<2;i++){
                    str = "男";
                    if(str===data.info.sex){
                        $("#right input:radio[name='sex']").eq(i).attr("checked",true);;
                        break;
                    }
                }
                $("#right textarea[name='message']").text(data.info.content);
                for(var i=1;i<5;i++){
                    str = "images/"+1+".jpg";
                    if(str===data.info.avater){
                        $("#right input:fadio[name'imgurl']").eq(i-1).atte("checked",true);;
                        break; 
                    }
                }
            }else{
                
            }
          }
          );
  </script>